﻿<div ng-controller="checkAccountController">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">银行账户审核</h4>
                </div>
                <div class="panel-body">
                    <div class="form-inline filter-option">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="pull-right">
                                    <input type="text" ng-model="filter.enterpriseName" placeholder="企业名称" class="form-control">
                                    <span>
                                        <input type="radio" name="checked"  value="0" ng-model="filter.checkedType" ng-change="reflash()"> 未审核
                                        <input type="radio" name="checked"  value="2" ng-model="filter.checkedType" ng-change="reflash()"> 等待鉴权
                                        <input type="radio" name="checked"  value="1" ng-model="filter.checkedType" ng-change="reflash()"> 已审核
                                    </span>
                                    <button class="btn btn-sm btn-info" ng-click="reflash()"><i class="fa fa-search"></i> 筛选</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html" class="table table-striped table-bordered table-hover table-condensed">
                        <tr ng-repeat="item in $data">
                            <td data-title="'序号'" width="10%" class="text-center">{{ first + $index }}</td>
                            <td data-title="'企业名称'" class="text-left">{{ item.enterprise_name }}</td>
<!--
                            <td data-title="'账户所有人'" class="text-center">{{ item.account_person }}</td>
-->
                           <!-- <td data-title="'账户类型'" class="text-center">{{ item.account_type_name }}</td>-->
                            <td data-title="'账户号码'" class="text-center">{{ item.account_number }}</td>
                            <td data-title="'开户行名称'" class="text-left">{{ item.bank_name }}</td>
                            <td data-title="'行号'" class="text-left">{{ item.bank_number }}</td>
                            <td data-title="'审核状态'" class="text-center">{{ item.verify_status }}</td>
                            <td data-title="'审核提交时间'" class="text-center">{{ item.verify_send_time|date:'yyyy-MM-dd HH:mm:ss' }}</td>
                            <td data-title="'系统审核时间'"  ng-if="filter.checkedType==1" class="text-center">{{ item.verify_passed_time |date:'yyyy-MM-dd HH:mm:ss' }}</td>

                            <td data-title="'鉴权金额'" ng-if="filter.checkedType==2||filter.checkedType==1" class="text-center">{{ item.verify_code }}</td>

                            <td class="text-center width-100 text-nowrap">
                                <button class="btn btn-info btn-xs" ng-click="check(item)" ng-if="filter.checkedType==0"><i class="fa fa-edit"></i> 审核</button>
                                <button class="btn btn-info btn-xs" ng-click="check(item)" ng-if="filter.checkedType==1"><i class="fa fa-edit"></i> 详细</button>
                                <!--<button class="btn btn-info btn-xs" ng-click="approve(item)" ng-if="filter.checkedType==1"><i class="fa fa-edit"></i> 认证</button>-->
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal fade" id="modal-check">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="checkForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>资料详情</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="form-horizontal">
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2"> 联系人：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.account_person }}
                                            </div>
                                            <label class="control-label col-md-2">联系方式：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.contact_phone }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2"> 企业名称：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.enterprise_name }}
                                            </div>
                                            <label class="control-label col-md-2"> 所在省市：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.bank_province }}
                                                {{ model.bank_city }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2">总行名称：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.head_bank_name }}
                                            </div>
                                            <label class="control-label col-md-2">分行名称：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.bank_name }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2"> 账户类型：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.account_type_name }}
                                            </div>
                                            <label class="control-label col-md-2"> 账户号码：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.account_number }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2">状态：</label>
                                            <div class="col-md-4 form-control-static">
                                                {{ model.verify_status }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <label class="control-label col-md-2">备注说明：</label>
                                            <div class="col-md-10 form-control-static">
                                                {{ model.description }}
                                            </div>
                                        </div>
                                        <div class="form-group width-full" ng-if="filter.checkedType==0">
                                            <label class="control-label col-md-2">审核说明：</label>
                                            <div class="col-md-10">
                                                <textarea class="form-control" ng-model="model.check_description" rows="4"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-sm btn-success" ng-click="pass()" ng-disabled="checkForm.$invalid" ng-if="filter.checkedType==0"><i class="fa fa-save"></i> 通过</button>
                                    <button type="button" class="btn btn-sm btn-danger" ng-click="reject()" ng-disabled="checkForm.$invalid" ng-if="filter.checkedType==0"><i class="fa fa-save"></i> 不通过</button>
                                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

